<?php

include_once 'init.php';
class UserServiceTests {
	public static function buyService() {
		$u = UserUtils::get(5);
		
		$s = ServiceUtils::get(2);
		

		
		UserServiceUtils::buy ( $s, $u );
	}
	
	public static function payForService() {
		$s = new UserService (new Service() );
		$s->setId ( 3 );
		UserServiceUtils::pay ( $s, 2 );
	}
	
	public static function find() {
		
		$controls = new UserServiceSearchControls ( );
		//$controls->setFromDate ( "1987-10-10" );
		//$controls->setToDate ( "2007-10-10" );
		//$controls->setUserId ( 3 );
		$controls->setUserName("kitty");
		UserServiceUtils::find ( $controls );
	
	}
	
	
	public static function get(){
		
		
		UserServiceUtils::get(3);
	}
}

//UserServiceTests::find();
//UserServiceTests::get();
//UserServiceTests::payForService();
UserServiceTests::buyService();
?>